package myCone;

import myCylinder.Circle;

public class Cone {
	private Circle c;
	private double h;

	Cone(double R, double H) {
		h = H;
		c = new Circle(R);
	}

	double l = Math.sqrt(3 * 3 + 4 * 4);

	public double geta() {
		return c.getA() + 3.14 * c.getR() * l;
	}

	public double getV() {
		return c.getA() * h * 1 / 3;
	}
}
